package com.acs.attestation.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * @author 杰
 * @Description:
 * @date 2020/12/11 14:52
 */

@SuperBuilder(toBuilder = true)
@AllArgsConstructor //全参构造函数
@NoArgsConstructor //空参构造函数
@Data
public class CommonEntity implements Serializable {

    //表id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * pmCode(逻辑主键)
     */
    @TableField(value = "pm_code")
    private String pmCode;

    /**
     * 创建人ID
     */
    @TableField(value = "creator")
    private String creator;

    /**
     * 创建人名称
     */
    @TableField(value = "create_name")
    private String createName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private String createTime;

    /**
     * 修改人ID
     */
    @TableField(value = "modifier")
    private String modifier;

    /**
     * 修改人名称
     */
    @TableField(value = "modify_name")
    private String modifyName;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time")
    private String modifyTime;

    /**
     * 删除标记
     */
    @TableField(value = "deleted")
    private Boolean deleted = false;

}
